package com.medical.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.manage.domain.BrowseRecording;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface BrowseMapper extends BaseMapper<BrowseRecording> {
    /**
     * 统计浏览量
     * @param id
     * @return
     */
    int countBrowseNum(@Param("id") Integer id);

    /**
     * 添加浏览记录
     * @param browseRecording
     */
    void addBrowseRecording(BrowseRecording browseRecording);
}
